/**
 * @filename:OtherPieceService Apr 19, 2024
 * @project Wonder Vue Admin Api  1.1.0
 * Copyright(c) 2022 Wonder Co. Ltd. 
 * All right reserved. 
 */
package com.wonder.app.service;
import com.wonder.app.domain.OtherPiece;
import com.wonder.app.request.OtherPieceRequest;
import com.wonder.common.common.AjaxResult;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wonder.common.exception.CustomException;

import java.util.Currency;
import java.util.Map;
/**   
 * @Description:TODO(其他计件服务层)
 * @version: 1.1.0
 * @author: Wonder
 * 
 */
public interface OtherPieceService extends IService<OtherPiece> {

    
    /**
     * 验证其他计件信息
     * 
     * @param otherPiece
     * @param type
     * @return 结果
     */
    public String validate(OtherPiece otherPiece,String type);   
   
	
	 /**
	 * Description:其他计件分页返回
	 * @param request//检索条件
	 * @param page//分页参数
	 * @return IPage<OtherPiece>   //分页记录
	 */
    public IPage<OtherPiece> selectList(OtherPieceRequest request, Page<OtherPiece> page);


	/**
	 * 保存其他计件
	 * @param entity
	 * @return
	 */
	boolean saveOtherPiece(OtherPiece entity) throws CustomException;

	/**
	 * 修改其他几件
	 * @param entity
	 * @return
	 */
	boolean updateOtherPiece(OtherPiece entity);
}
